package com.pine.common.beans.pineframework.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 系统审批申请表新增或修改请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-10-31
 */
@Data
@Schema(title = "SysApprovalApplicationSaveOrUpdateRequest", description = "系统审批申请表新增或修改请求体")
public class SysApprovalApplicationSaveOrUpdateRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = -1182859946257735377L;

    /**
     * 自增主键
     */
    @Schema(title = "id", description = "主键")
    private Long id;

    /**
     * 审批ID
     */
    @Schema(title = "approvalId", description = "审批ID")
    private String approvalId;

    /**
     * 申请名称
     */
    @NotBlank(message = "申请名称不能为空")
    @Schema(title = "name", description = "申请名称")
    private String name;

    /**
     * 申请类型
     */
    @Schema(title = "type", description = "申请类型")
    private String type;

    /**
     * 申请内容
     */
    @NotBlank(message = "申请内容不能为空")
    @Schema(title = "content", description = "申请内容")
    private String content;

    /**
     * 附件地址
     */
    @Schema(title = "attachmentUrl", description = "附件地址")
    private String attachmentUrl;

    /**
     * 申请状态:0=待提交,1=待审批,2=已审批,3=已拒绝,4=已完成,5=已取消
     */
    @NotNull(message = "申请状态不能为空")
    @Schema(title = "status", description = "申请状态:0=待提交,1=待审批,2=已审批,3=已拒绝,4=已完成,5=已取消")
    private Integer status;

    /**
     * 审批人ID
     */
    @Schema(title = "approvalUserId", description = "审批人ID")
    private Long approvalUserId;

    /**
     * 审批人名称
     */
    @Schema(title = "approvalUsername", description = "审批人名称")
    private String approvalUsername;

    /**
     * 备注
     */
    @Schema(title = "remark", description = "备注")
    private String remark;
}
